package com.wanjia.estate.pojo.tax;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AccessLevel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class A003 {

    @Data
    public static class Taxbizml<T> implements Serializable {
        @JSONField(name = "RWJSHOUSELIST")
        private List<T> rwjshouselist;
    }

    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class RequestThree extends CommonRoot<Taxbizml<RequestRwjshouselistThree>> {

    }

    @Data
    public static class RequestRwjshouselistThree implements Serializable {
        @JSONField(name = "SJBH")
        private String sjbh;//收件单
        @JSONField(name = "SJRQ")
        private Date sjrq;//收件单
        @JSONField(name = "ZLFCLFBZ")
        private String zlfclfbz;//增量房
        @JSONField(name = "SJGSDQ")
        private String sjgsdq;
        @JSONField(name = "LRRDM")
        private String lrrdm;
        @JSONField(name = "HTBH")
        private String htbh;//查合同
        @JSONField(name = "JYUUID")
        private String jyuuid;//交易编号来自任务接收返回
        @JSONField(name = "FWUUID")
        private String fwuuid;//房屋编号，来自税务返回
        @JSONField(name = "RWZT")
        private String rwzt;
    }

    /*@Data
    @EqualsAndHashCode(callSuper = true)
    public static class Response extends CommonRoot<Taxbizml<ResponseRwjshouselist>> {

    }

    @Data
    public static class ResponseRwjshouselist implements Serializable {
        @JSONField(name = "FHM")
        private String fhm;
        @JSONField(name = "FHXX")
        private String fhxx;
        @JSONField(name = "SJBH")
        private String sjbh;
        @JSONField(name = "HTBH")
        private String htbh;
        @JSONField(name = "JYUUID")
        private String jyuuid;
        @JSONField(name = "FWUUID")
        private String fwuuid;
    }*/


//    @Data
//    public static class Response {
//        private int code;
//        private ResponseDataThree data;
//        private String message;
//    }
//    @Data
//    public static class ResponseDataThree implements Serializable {
//        private Taxbizml2 taxbizml;
//    }
//    @Data
//    public static class Taxbizml2 implements Serializable {
//        private Rwjshouselist rwjshouselist;
//
//    }

    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class Response extends CommonRoot<Taxbizml<RwjshouselistThree>> {

    }
    @Data
    public static class RwjshouselistThree implements Serializable {
        @JSONField(name = "FHM")
        private String fhm;
        @JSONField(name = "FHXX")
        private String fhxx;
        @JSONField(name = "SJBH")
        private String sjbh;
        @JSONField(name = "HTBH")
        private String htbh;
        @JSONField(name = "JYUUID")
        private String jyuuid;
        @JSONField(name = "FWUUID")
        private String fwuuid;
    }
}
